package com.run.guifeng.model.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

@Data
@TableName("guifeng_mall_index_config")
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class IndexConfig extends BaseEntity{
    @TableId(value="id",type= IdType.AUTO)
    private Integer id;

    @TableField(value="config_name", exist=true)
    private String configName;

    /**
     * 1.新品推荐
     * 2.热销推荐
     * （可添加）
     */
    @TableField(value="config_type", exist=true)
    private String configType;

    @TableField(value="goods_id", exist=true)
    private Integer goodsId;

    @TableField(value="redirect_url", exist=true)
    private String redirectUrl;

    @TableField(value="config_rank", exist=true)
    private String configRank;

    @TableField(value="create_user",exist=true)
    private Integer createUser;

    @TableField(value="update_user",exist=true)
    private Integer updateUser;

    @TableField(value = "is_deleted", exist = true)
    private Boolean deleted;
}
